package cn.cvs.mapper.supplier;

import cn.cvs.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 */

public interface SupplierMapper {

    List<Supplier> getSupplierListByCodeAndName(@Param ( "code" )String code,@Param ( "name" ) String name,@Param ( "pageNo" ) Integer pageNo,@Param ( "pageSize" ) Integer pageSize);

    int add(Supplier supplier);

    int update(Supplier supplier);

    int delete(List<Integer> ids);

    Supplier getSupplierById(@Param ( "getid" )Integer getid);

    int getCountByCodeAndName(@Param ( "code" )String code,@Param ( "name" ) String name);

    int getCountByQueryJoinEntity(int id);

    List<Supplier> getList();
}
